-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CI] Pass local python version explicitly to pre-commit mypy.sh #12224
Conversation
Signed-off-by: Chen Zhang <[email protected]>
👋 Hi! Thank you for contributing to the vLLM project. Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging. To run CI, PR reviewers can do one of these:
🚀 |
.pre-commit-config.yaml
Outdated
@@ -42,7 +42,7 @@ repos: | |||
hooks: | |||
- id: mypy-local | |||
name: Run mypy for local Python installation | |||
entry: tools/mypy.sh | |||
entry: tools/mypy.sh 1 "local" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
entry: tools/mypy.sh 1 "local" | |
entry: tools/mypy.sh 0 "local" |
Should be 0 here to indicate not running in CI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. But why does here use CI=1?
name: Run mypy for Python 3.9
entry: tools/mypy.sh 1 "3.9"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The version-locked steps are intended to be run in CI only.
Signed-off-by: Chen Zhang <[email protected]>
Signed-off-by: Chen Zhang <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing!
…-project#12224) Signed-off-by: Chen Zhang <[email protected]> Signed-off-by: Matthew Hendrey <[email protected]>
pre-commit passes all modified fills to
mypy.sh
, and$1
$2
will be filled by the path to modified filenames and I get the following errors:This pr fixes the error by passing "local" explicitly.